<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">

		<title>课程管理-大爱优能教育</title>
		<link rel="stylesheet" type="text/css"
			href="<%=basePath%>/jquery-easyui-1.3.6/themes/default/easyui.css">
		<link rel="stylesheet" type="text/css"
			href="<%=basePath%>/jquery-easyui-1.3.6/themes/icon.css" />
		<script type="text/javascript"
			src="<%=basePath%>/jquery-easyui-1.3.6/jquery.min.js"></script>
		<script type="text/javascript"
			src="<%=basePath%>/jquery-easyui-1.3.6/jquery.easyui.min.js"></script>
		<script type="text/javascript"
			src="<%=basePath%>/jquery-easyui-1.3.6/locale/easyui-lang-zh_CN.js"></script>

		<script type="text/javascript"
			src="<%=basePath%>/UEditor/ueditor.config.js"></script>
		<script type="text/javascript"
			src="<%=basePath%>/UEditor/ueditor.all.js"></script>
			<%--<SCRIPT type="text/javascript" src="<%=basePath%>/js/jquery-1.9.1.min.js"></SCRIPT>--%>
			<SCRIPT type="text/javascript" src="<%=basePath%>/js/ajaxfileupload.js"></SCRIPT>
		<script type="text/javascript" src="<%=basePath%>/back/js/lesson.js"></script>



<style type="text/css">
ul{
list-style: none;
}
li{
list-style: none;
}
</style>
	</head>

	<body style="margin: 0px">
		<div id="tabs" class="easyui-tabs" style="width: 1140px;">
			<div title="课程列表" style="display: block;">
				<table id="tt" class="easyui-datagrid">
					<thead>
						<tr>
							<th field="lesson_id" width="60">
								课程编号
							</th>
							<th field="classif_id" width="60">
								分类编号
							</th>
							<th field="name" width="100">
								课程名称
							</th>
							<th field="hour" width="100">
								课时
							</th>
							<th field="price" width="100">
								价格
							</th>
							<th field="grade" width="100">
								适用范围
							</th>
							<th field="create_time" width="200">
								创建时间
							</th>
							<th field="create_user" width="100">
								创建人
							</th>

						</tr>
					</thead>
				</table>
			</div>
		</div>

		<div class="easyui-window" id="dlg"
			data-options="title:'课程信息-修改',closed:true, collapsible:false, minimizable:false, maximizable:false, closable:false"
			style="overflow: auto; padding-left: 10px; width: 1100px; height: 498px;">
			<form id="fm" method="post" enctype="multipart/form-data" action="lesson/addLesson" target="_blank"
				style="width: 1060px; height420px; background-color: #eee; float: left;margin-left: -10px">
				<table style="width: 260px; float: left ;border: 2px solid #fff; margin:0px;padding: 0px">
						<tr>
							<td>
								<label>
									课程分类：
								</label>
							</td>
							<td>
								<select id="cc" name="classif" style="width:160px" class="easyui-combobox" >
								</select> 
								</td>
							</tr>
						
							<tr>
							<td>
								<label>
									课程名：
								</label>
							</td>
							<td>
								<input id="name" name="name" class="easyui-vatrdatebox"
									data-options="required:true" />
								<input id="id" name="lesson_id" type="hidden" />
								</td>
							</tr>
							<tr>
							<td>
								<label>
									课时：
								</label>
						</td>
							<td>
								<input id="hour" name="hour" class="easyui-vatrdatebox"
									data-options="required:true" />
							</td>
							</tr>
							<tr>
							<td>
								<label>
									价格：
								</label>
							</td>
							<td>
								<input id="price" name="price" class="easyui-vatrdatebox"
									data-options="required:true" />
							</td>
							</tr>
							<tr>
							<td>
								<label>
									适用范围：
								</label>
							</td>
							<td>
								<input id="grade" name="grade" class="easyui-vatrdatebox"
									data-options="required:true" />
							</td>
							</tr>
							<tr>
							<td colspan="2">
								<label>
									图片：
								</label>
							</td>
							</tr>
							<tr>
							<td colspan="2">
							<input type="file" name="upload" id="upload" />
							
							</td>
							</tr>
							<tr>
							<td colspan="2">
							<input type="button" id="uploadImg" value="上传图片" onclick="ajaxUpload()"/>
							</td>
							</tr>
							<tr>
							<td colspan="2">
							<img id="photo_path" style="width:150px;height:200px" alt="高度 X 宽度:200px X 150px"/>
							<span>高度 X 宽度:200px X 150px</span>
							<span style="display: none" id="photo_path_val"></span>
							</td>
							</tr>
					
				</table>
				<div class="fitem1" style="width: 800px; float: right">
					<label>
						课程介绍：
					</label>
					<div id="container" name="content"></div>
				</div>
			</form>
			<div id="dlg-buttons" style="float: right; padding-right: 500px">
				<a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-ok'" onclick="save();">--保存--</a>&nbsp;&nbsp;&nbsp;&nbsp;
				<a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-cancel'" onclick="javascript: $('#dlg').dialog('close');">--关闭--</a>
			</div>
		</div>
	</body>
</html>
